﻿using System;

using System.Collections.Generic;
using Shuba.Model;
using System.Data;

namespace Shuba.Business
{
    public class CDC
    {
        private Data.CDC cdc;

        public CDC()
        {
            cdc = new Data.CDC();
        }

        public List<CDCInfo> GetList(string Name)
        {
            return cdc.GetList(Name);
        }

        public List<CDCInfo> GetListExportExcell(string value)
        {
            return cdc.GetListExportExcell(value);
        }

        public void Save(string ProspectID, string IsBIChecking)
        {
            cdc.Save(ProspectID, IsBIChecking);
        }

        public List<string> GetParameter()
        {
            return cdc.GetParameter();
        }

        public List<string> GetParameterTable()
        {
            return cdc.GetParameterTable();
        }

        public void SaveParameter(List<string> param)
        {
            cdc.SaveParameter(param);
        }

        public DataSet GetListParameter(string value, string nip)
        {
            return cdc.GetListParameter(value, nip);
        }

        public DataSet GetListParameterAll(string value)
        {
            return cdc.GetListParameterAll(value);
        }

        public DataSet GetListByID(string value)
        {
            return cdc.GetListByID(value);
        }

        public void SaveOperator(string id, string prospectID)
        {
            cdc.SaveOperator(id, prospectID);
        }

        public void setUrgent(string ProspectID)
        {
            cdc.setUrgent(ProspectID);
        }

        public void SetIsBIChecking(string prospectID)
        {
            cdc.SetIsBIChecking(prospectID);
        }

        public void SetReplacementOperator(string nip, string prospectID)
        {
            cdc.SetReplacementOperator(nip, prospectID);
        }

        //public List<string> ListReplacementOp()
        //{
        //    return cdc.ListReplacementOp();
        //}

        public DataSet GetListReplacementOp(string value)
        {
            return cdc.GetListReplacementOp(value);
        }

    }
}
